//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.zz.protocol;

import android.os.Handler;
import android.os.Message;

public class MXLog {
    public static boolean LOG_MSG = false;
    public static final int SHOW_MSG = 255;
    public static final int CLEAR_MSG = 256;
    private static Handler m_fHandler = null;

    public MXLog() {
    }

    public static void SetHandler(Handler fHandler) {
        m_fHandler = fHandler;
    }

    public static void SendMsg(String obj) {
        if(LOG_MSG) {
            Message message = new Message();
            message.what = 255;
            message.obj = obj;
            message.arg1 = 0;
            if(m_fHandler != null) {
                m_fHandler.sendMessage(message);
            }

        }
    }

    public static void ClearMsg() {
        if(LOG_MSG) {
            Message message = new Message();
            message.what = 256;
            message.obj = null;
            message.arg1 = 0;
            if(m_fHandler != null) {
                m_fHandler.sendMessage(message);
            }

        }
    }
}
